import uviewPlus from 'uview-plus';
import { createSSRApp } from "vue";
import App from "./App.vue";
import * as Pinia from 'pinia';
import useGlobalStore from './stores/global';
import useUserStore from './stores/user';

export function createApp() {
	const app = createSSRApp(App);
	app.use(uviewPlus)
	app.use(Pinia.createPinia());
	
	useGlobalStore()
	useUserStore()
	
	return {
		app,
		Pinia,
	};
}